package com.atung.parking.mapstruct;

import com.atung.parking.entity.BusApprovalRecord;
import com.atung.parking.entity.BusParkingIot;
import com.atung.parking.entity.BusParkingIotPackage;
import com.atung.parking.export.ParkingIotExportVO;
import com.atung.parking.export.ParkingIotPackageExportVO;
import com.atung.parking.mapper.BusParkingIotMapper;
import com.atung.parking.response.page.ApprovalRecordResponse;
import com.atung.parking.response.page.ParkingIotPackageResponse;
import org.mapstruct.*;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Objects;

/**
 * @author Administrator
 */
@Component
@Mapper(componentModel = "spring")
@DecoratedWith(ParkingIotPackageConverterDecorator.class)
public interface ParkingIotPackageConverter {

    ParkingIotPackageResponse toResponse(BusParkingIotPackage busParkingIotPackage);

    ParkingIotPackageExportVO toExportVo(BusParkingIotPackage busParkingIotPackage);

    ApprovalRecordResponse toApprovalResponse(BusApprovalRecord busApprovalRecord);

}
